package com.sz.common.core.system.service;

import com.sz.common.core.system.entity.SysSMS;

import java.util.List;

/**
 * Function: TODO: ADD FUNCTION <br>
 * Author: Johnboy <br>
 * Date: 2017-08-10 11:23:00
 */
public interface SysSmsService {
    /**
     *
     * @param phoneNumber 接收人电话号
     * @param phoneKey
     * @param phoneCode
     *
     * @return id
     */
    int createSMS(String phoneNumber, String phoneKey, String phoneCode);

    /**
     *
     * @param id
     * @param result
     */
    void updateSendResult(int id, boolean result, String errorCode);

    /**
     *
     */
    List<SysSMS> getAllNeddSendSMS();

    SysSMS getSmsById(int id);

    void setSmsFailStatus(int id, String errorCode);
}
